package com.tjetc.controller;

import com.tjetc.common.JsonResult;
import com.tjetc.service.DishTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("type")
public class DishTypeController {
    @Autowired
    private DishTypeService dishTypeService;

    /***
     * 获取所有一级分类菜系id
     * @return
     */
    @RequestMapping("all")
    public JsonResult getAll(){
        return dishTypeService.getAll();
    }
}
